#include "widget.h"
#include "ui_widget.h"
#include <QDebug>
#include <QComboBox>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->comboBox->addItem("雪碧");
    ui->comboBox->addItem("可乐");
    ui->comboBox->addItem("大窑");
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    qDebug()<<"您的点餐为："<<ui->comboBox->currentText()<<"数量为："<<ui->spinBox->value();

}
